<%@page import="com.qdu.dao.UserLoginDao"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="java.util.List"%>
<%@page import="java.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head><title>会员中心个人修改</title>
        <LINK  href=img/ys1.css type=text/css rel=stylesheet>
            <style>
            #div0{
                width:100%;
                height:50px;
                background-color:#FFCCCC;
                position:fixed;
                z-index:10;
                margin:-10px -10px 0px -10px;
            }
            #top-page{
                float:right;
                height:10px;
                white-space:nowrap;
                margin:25px 0px 0px 0px;

            }	
            #logo{
                height:50px;
                width:50px;
                float:left;
            }
            
        </style>
    </head>
    <body leftMargin=0 topMargin=0 bgColor=#F0FFFF>
        <div id="div0">
            <div id="logo">
                <img src="img/logo.jpg" style="width:100%;height:100%; margin-left:15%">
            </div>
            <div id="top-page" align="right" style="margin-right:5%">
                <div align=center>
                   <a href="/J02_T13_P04/index.jsp"><FONT color=#ffffff>首页</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/newbook.jsp"><FONT color=#ffffff>最新图书</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/fenlei.jsp"><FONT color=#ffffff>图书分类</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/allbooklist.jsp"><FONT color=#ffffff>全部图书</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/admin/login.jsp" target=_blank><FONT color=#ffffff>管理入口</FONT></a>
                </div>
            </div>
        </div>
        <br><br>
        <div align="center">
            <img src="img/top.jpg" width="779">
        </div>
       
 <%
    String message = (String)request.getAttribute("message");
            if(message == null){
                            message = "";
            }
            if (!message.trim().equals("")){
                    out.println("<script language='javascript'>");
                    out.println("alert('"+message+"');");
                    out.println("</script>");
            }
            request.removeAttribute("message");
	
            String name=(String)session.getAttribute("name");//获name属性值
            if(name!=null){
    %>
   <table cellSpacing=0 cellPadding=0 width=779 align=center
           border=0>

<tbody>
            <tr>
                <td align=center vAlign=top width=779 height=389>

                    <table bgcolor=#99CCCC align=left width=100 border=0 height=404>
                        <tr>
                            <td align=center bordercolor="#CCFFFF" bgcolor="#99CCCC"><a href="upuser.jsp">个人信息</a></td>
                        </tr>
                        <tr>
                            <td align=center bordercolor="#FFFFFF" bgcolor="#99CCCC"><a href="gouwuche.jsp">我的购物车</a></td> 
                        </tr>
                        <tr>
                            <td align=center bordercolor="#FFFFFF" bgcolor="#99CCCC"><a href="shoucangjia.jsp">我的收藏夹</a></td> 
                        </tr>
                        <tr>
                            <td align=center bordercolor="#FFFFFF" bgcolor="#99CCCC"><a href="dingdan.jsp">我的定单</a></td>
                        </tr>
                        <tr>
                            <td align=center bordercolor="#FFFFFF" bgcolor="#99CCCC"><a href="index.jsp">返回首页</a></td>
                        </tr> 
                        <tr>
                            <td bordercolor="#FFFFFF" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                        <tr>
                            <td bordercolor="#000000" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                        <tr>
                            <td bordercolor="#000000" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                        <tr>
                            <td bordercolor="#000000" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                        <tr>
                            <td bordercolor="#000000" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                        <tr>
                            <td height="58" bordercolor="#000000" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                        <tr>
                            <td height="25" bordercolor="#000000" bgcolor="#99CCCC"><a href="">&nbsp;</a></td>
                        </tr>
                    </table>
      <script language="javascript">
                        function check()
                        {
                            if (document.form1.login.value == "" || document.form1.password.value == "" || document.form1.name.value == "" || document.form1.email.value == "" || document.form1.tel.value == "")
                            {
                                alert("必须填写所有项目！");
                                return false;
                            }
                        }
      </script>	
                    <%
                            List list=new UserLoginDao().getUser(name);
                    %>
                    <form action="RegUtil.jsp" method="post" name="form1" onSubmit="return check()">
                        <table align=right width=675 border=0 height=300>
                            <tr><input type=hidden name=method value=up>
                            <input type=hidden name=login value=<%=list.get(1).toString() %>>
                            <td align="center" colspan="2">
                                <p><br>
                                    <span class="STYLE2" >用户注册信息</span><br>
                                    <br>(以下项目必须填写)</p>
                            </td>
                            </tr>
                            <tr>
                                <td width=300 align="right" height="30">登&nbsp;陆&nbsp;名</td>
                                <td align="left" ><%=list.get(1).toString() %></td>
                            </tr>
                            <tr>
                                <td align="right"  height="30">密码(6位)</td>
                                <td align="left" ><input type="password" name="password" size="20" maxlength="16" value=<%=list.get(2).toString() %>></td>
                            </tr>
                            <tr>
                                <td align="right" height="30">真实姓名</td>
                                <td align="left" ><input type="text" name="name" size="20" maxlength="16" value=<%=list.get(3).toString() %>></td>
                            </tr>
                            <tr> 
                                <td align="right" height="30">性&nbsp;&nbsp;&nbsp;&nbsp;别</td>
                                <td align="left" ><input type="radio" name="sex"  value="男" checked="checked">
                                    男   <input type="radio" name="sex" value="女"> 
                                    女</td>
                            </tr>
                            <tr>
                                <td align="right" height="30">邮&nbsp;&nbsp;&nbsp;&nbsp;箱</td>
                                <td align="left" ><input type="text" name="email" size="20" maxlength="16" value=<%=list.get(5).toString() %>></td>
                            </tr>
                            <tr>
                                <td align="right" height="30">电&nbsp;&nbsp;&nbsp;&nbsp;话</td>
                                <td align="left" ><input type="text" name="tel" size="20" maxlength="16" value=<%=list.get(6).toString() %>></td>
                            </tr>
                            <tr>
                                <td height="23" colspan="2" align="center"><input type="submit" value="修改">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重填"></td>
                            </tr>
                        </table>

                    </form>

                </td>

            </tr></tbody></table>
<br><br><br>
<div style="background:#CCFFFF;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
<div style="background:#FFCCCC;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
<div style="background:#CCFFFF;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
</BODY>
<%
    }else{
    response.sendRedirect("index.jsp");}
%>
</html>

